<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;
use App\User;

class Upload extends Model
{

    protected $fillable = ['disk','filename','path','mimetype','filesize','thumb'];

    public function user()
    {
        return $this->hasOne(User::class,'avatar');
    }
}
